import React from "react"
import { connect } from 'react-redux'
import { getProjectList } from '../../redux/actions/projects'

class Page2 extends React.Component{
  constructor(props) {
    super(props);
  }

  componentDidMount() {
    this.props.getProjectList()
  }

  render(){
    return <h4>This is Page 2.</h4>
  }
}

export default connect(null, { getProjectList })(Page2)
